﻿@model BankCreditPortfolio.Areas.Admin.Models.CurrencyModel

@{
    ViewBag.Title = "Add Currency";
}

<h2>Add Currency</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<link href="@Url.Content("~/Content/Admin/Styles/forms.css")" rel="stylesheet" type="text/css" />

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true, "Currency creation was unsuccessful. Please correct the errors and try again.")
    <fieldset>
        <legend>Add Currency Information</legend>
            
        <div class="editor-label required">
            @Html.LabelFor(m => m.Title)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.Title)
            @Html.ValidationMessageFor(m => m.Title)
        </div>
        <p>Fields marked <b>bold</b> are required</p>
        <input type="submit" name="button" value="Save"/>     
        <input type="button" onclick="ClickCancel();" value="Cancel" />
                <script type="text/javascript">
                    function ClickCancel() {
                        window.location = '@Url.Action("Currencies", "Admin")';
                    }
                </script>
    </fieldset>
}